package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author 赵超
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_sku_class")
public class SkuClass implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)  // 关键注解
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Integer classId;
    private String className;
    private Integer parentId;

}
